﻿Imports Mysoft.Map.Data

Partial Public Class SiteManager_Grid
    Inherits Mysoft.Map.Application.Security.AppPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Dim strSql As String
            strSql = " SELECT '' as rowid,'' as IsDirty,SiteGUID,SiteName,SitePath,SortNum,IsSys,IsMy FROM mySite ORDER BY SortNum "

            Repeater1.BindMode = 0                                          '绑定模式：0 -- SQL 语句绑定，1 -- DataTable 绑定
            Repeater1.PKField = "SiteGUID"
            Repeater1.ConnectionString = MyDB.GetSqlConnectionString  '设置连接字符串
            Repeater1.SQL = strSql
            Repeater1.DataBind()
        End If
    End Sub

End Class